﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonList.aspx.cs" Inherits="AiRiZu.PersonList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员列表</title>
    <link rel="stylesheet" type="text/css" href="style/style.css" />

    <script language="javascript" type="text/javascript">
        function deleted() {
            if (event.srcElement.innerText == "删除")
                event.returnValue = confirm("确实要删除此记录?");
        }
        document.onclick = deleted; 
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <%--<%=RoomListString%>--%>
        <table width="1000" cellspacing="0" cellpadding="0" border="0" align="center" class="boxcolor box spacetop30">
            <tbody>
                <tr>
                    <td height="30" colspan="9">
                        <div class="divbutton03">
                            <a href="ExitPerson.aspx" style="color: Black">添加会员</a></div>
                        <%--<div class="divbutton03">
                            <a href="add.aspx" target="_blank" style="color: Black">查询房间</a></div>--%>
                        <div class="divbutton03">
                            <a href="CPDashboard.aspx" style="color: Black">房间查询</a></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        用户姓名：<asp:TextBox ID="username" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;
                        电子邮件：<asp:TextBox ID="useremail" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp; 
                        性别：<asp:DropDownList
                            ID="sex" runat="server" CssClass="w_128">
                            <asp:ListItem Value="1" Selected="True">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                        </asp:DropDownList>&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="sel" runat="server" Text="查询" OnClick="sel_Click"></asp:Button>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DataGrid ID="SignDg" runat="server" AutoGenerateColumns="False" Width="1300px"
                            OnDeleteCommand="SignDg_DeleteCommand" OnEditCommand="SignDg_EditCommand" AllowPaging="True"
                            PageSize="20" OnPageIndexChanged="SignDg_PageIndexChanged">
                            <PagerStyle Mode="NumericPages" Position="TopAndBottom" />
                            <Columns>
                                <asp:BoundColumn Visible="False" DataField="PersonId" ReadOnly="True"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Xing" HeaderText="姓">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Ming" HeaderText="名">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Email" HeaderText="电子邮件">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Sex" HeaderText="性别">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="School" HeaderText="学校">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Adress" HeaderText="居住地">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" Width="200" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="Work" HeaderText="工作">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="MobileTelephone" HeaderText="移动电话">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="TelephoneBack" HeaderText="备用电话">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="MyDesc" HeaderText="自我描述">
                                    <HeaderStyle CssClass="form_name"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" />
                                </asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="操作">
                                    <HeaderStyle CssClass="form_name" Width="140"></HeaderStyle>
                                    <ItemStyle CssClass="textcen" VerticalAlign="Middle"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="false" CommandName="Edit"
                                            Font-Underline="false" ForeColor="Black" Text="编辑" CssClass="divbutton01"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton5" runat="server" Text="删除" Font-Underline="false"
                                            ForeColor="Black" CommandName="Delete" CssClass="divbutton01"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                        </asp:DataGrid>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
